package com.xiaoxiao.android;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class LiveKeeperSqliteHepler extends SQLiteOpenHelper{
	
	
	 public static final String tableName = "t_user";  
	 public static final String ID = "_id";  
	 public static final String nameRow = "name";  
	 public static final String passwordRow = "password";  
	 

	public LiveKeeperSqliteHepler(Context context, String name,
			CursorFactory factory, int version) {
		super(context, name, factory, version);
	
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		
		  db.execSQL("CREATE TABLE IF NOT EXISTS "+tableName+" ("/*+ID+" INTEGER PRIMARY KEY,"*/+nameRow+" VARCHAR,"+passwordRow+" VARCHAR)");  
		
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		
		
	}

}
